package com.eqdd.yiqidian.ui.gongneng.renshi.yuangongdangan;

import android.view.View;

import com.eqdd.annotation.datasave.DealCodeClass;
import com.eqdd.yiqidian.bean.EnterBean;
import com.eqdd.yiqidian.ui.base.BaseEnterActivity;
import com.eqdd.yiqidian.ui.gongneng.renshi.yuangongdangan.ruzhuyaoqing.SelectPostFromComActivity;
import com.eqdd.yiqidian.ui.gongneng.renshi.yuangongdangan.yuangongzhuangkuang.ZhuangkuangActivity;
import com.eqdd.yiqidian.utils.ToastUtil;

/**
 * Created by lvzhihao on 17-4-19.
 */

public class YuangongDanganActivity extends BaseEnterActivity {

    private Class[] classes = new Class[]{
            ZhuangkuangActivity.class,
            SelectPostFromComActivity.class,
            EnterComCheckActivity.class,
            null
    };

    @DealCodeClass(classes = {EnterComCheckActivity.class})
    public void updateRuzhi(int num) {
        updateNum(2, num);
    }

    @Override
    public void itemClick(int p) {
        if (classes[p] != null) {
            startActivity(classes[p]);
        } else {
            ToastUtil.showShort("该模块暂未开发");
        }
    }

    @Override
    public void initEnterData() {
        isDealCode = true;
        initTopTitleBar(View.VISIBLE, "员工档案管理");
        enterBeans.add(new EnterBean("员工状况"));
        enterBeans.add(new EnterBean("入驻邀请"));
        enterBeans.add(new EnterBean("入职审批"));
        enterBeans.add(new EnterBean("流程查询"));
    }

    @Override
    public void lastRun() {
        if (register != null) {
            ((YuangongDanganActivity$$DealCodeInjector) register).update1();
        }
    }
}
